<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Sistema Comercial - Ricardo Brambila</title>
</h:head>
<h:body>
	<h:outputStylesheet library="css" name="estilo.css" />

	<div id="header" style="text-align: center;">
		<img src="imagens/logo.png" alt="Logo - Sistema Comercial" />
		<hr />
	</div>

	<div id="conteudo">
		<ui:insert name="conteudo">
			<h1>Conteúdo da tela</h1>
		</ui:insert>
	</div>

	<div id="menu">
		<fieldset>
			<legend>Menu Principal</legend>

			<h:link value="Cadastrar Departamento" outcome="formulario-departamento" />
			<br />
			<h:link value="Lista de Departamentos" outcome="#{departamentoBean.lista()}" />
			
			<br />
			<hr />
			
			<h:link value="Cadastrar Funcionário" outcome="#{funcionarioBean.preparaAdiciona()}" />
			<br />
			<h:link value="Lista de Funcionários" outcome="#{funcionarioBean.lista()}"/>

		</fieldset>
	</div>

	<div id="footer" style="text-align: center">
		<hr />
		<h3>Sistema Comercial - Ricardo Brambila</h3>
	</div>

</h:body>
</html>
